package com.example.xd.libs;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import com.example.xd.apt_annotation.BindView;
import com.example.xd.apt_binder.AptBinder;
import com.example.xd.apt_binder.UnBinder;

public class BindTestActivity extends AppCompatActivity {

    private UnBinder bind;

    @BindView(viewId = R.id.tv1)
    TextView mtv1;
    @BindView(viewId = R.id.tv2)
    TextView mtv2;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bind_test);
        bind = AptBinder.bind(this);
        mtv1.setText("我是TV1");
        mtv2.setText("我是TV2");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        bind.unbind();

    }
}